package com.testmanager.testmananger.foundation.domain.enums;

import javax.persistence.AttributeConverter;

public abstract class EnumAttributeConverter<E extends EnumBase> implements AttributeConverter<E,Integer> {

    @Override
    public Integer convertToDatabaseColumn(E e) {
        if (e == null) {
            return null;
        }
        return e.getValue();
    }


}
